package businesslogic.userBl;

import java.util.ArrayList;

import vo.userVO.DepartmentDeanVO;
import vo.userVO.StudentVO;
import vo.userVO.TeacherVO;
import businesslogicservice.userblservice.DepartmentDeanBLService;
import dataservice.ResultMessage;


public class DepartmentDeanController  implements DepartmentDeanBLService{

	DepartmentDeanBLService departmentDean;
	private String UserID;
	
	
	public DepartmentDeanController(String UserID) {
		this.UserID=UserID;
		
		departmentDean=new DepartmentDean(UserID);
	}
	

	@Override
	public ArrayList<StudentVO> getStudentList(String departmentID)throws Exception {
		return departmentDean.getStudentList(departmentID);
	}

	
	@Override
	public ArrayList<TeacherVO> getTeacherList(String departmentID)throws Exception {
		return departmentDean.getTeacherList(departmentID);
	}
	
	
	@Override
	public ResultMessage login(String id, char[] password) {
		return departmentDean.login(id, password);
	}
	@Override
	public ResultMessage changePassword(char[] oldPassword, char[] password1,
			char[] password2)  {
		return departmentDean.changePassword( oldPassword, password1, password2);
	}


	@Override
	public String getUserName(String userID)throws Exception {
		return departmentDean.getUserName(userID);
	}


	@Override
	public int getUserType(String userID) throws Exception {
		return departmentDean.getUserType(userID);
	}


	@Override
	public DepartmentDeanVO getDepartmentDeanVO(String ID)
			throws Exception {
		// TODO Auto-generated method stub
		return departmentDean.getDepartmentDeanVO(ID);
	}

}
